<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/page/share/taglib.jsp"%>
<%
	response.setHeader("Cache-Control", "no-store"); //HTTP1.1
	response.setHeader("Pragma", "no-cache"); //HTTP1.0
	response.setDateHeader("Expires", 0);
%>

<div id="jobData" class="result ui-widget-content ui-corner-all">
         <h2 class="u-title">批次编号
         <font color="#FF4500" ><s:property value="batchNoShow" /></font>
                        所包括的任务</h2>
         <table class="datashow" style="width: 95%; table-layout: fixed;" cellpadding="0" cellspacing="0">
		 <thead>
			<tr >
			    <th width="10%" class="table_head">批次编号</th>
			    <th width="10%" class="table_head">任务编号</th>
			    <th width="10%" class="table_head">任务名称</th>
				<th width="10%" class="table_head">任务控制位</th>
<!-- 				<th width="10%" class="table_head">详细查看</th> -->
			</tr>
		</thead>				                       
		<tbody>
			<s:if test="jobInfoList.size > 0">
				<s:iterator value="jobInfoList" var="jobInfo"  status="status">
						<s:if test="#status.odd">
						  <tr class="style1">
							<td><s:property value="#jobInfo.batchNo" /></td>
							<td><s:property value="#jobInfo.jobNo" /></td>
							<td><s:property value="#jobInfo.jobDesc" /></td>
							<td><s:property value="#jobInfo.chJobCtrlFlgs" /></td>
<!-- 							<td class="txtCenter"> -->
<%-- 								<a href="#" onlick="findSubStep('<s:property value="#jobInfo.batchNo" />','<s:property value="#jobInfo.jobNo" />');"> --%>
<!--                                                                                                                   包括的步骤 -->
<!-- 								</a> -->
<!-- 							</td> -->
						 </tr>
						</s:if>
						<s:else>
						   <tr class="style2">
						    <td><s:property value="#jobInfo.batchNo" /></td>
							<td><s:property value="#jobInfo.jobNo" /></td>
							<td><s:property value="#jobInfo.jobDesc" /></td>
							<td><s:property value="#jobInfo.chJobCtrlFlgs" /></td>
<!-- 							<td class="txtCenter"> -->
<%-- 				                <a href="#" onlick="findSubStep('<s:property value="#jobInfo.batchNo" />','<s:property value="#jobInfo.jobNo" />');"> --%>
<!--                                                                                                                   包括的步骤 -->
<!-- 								</a> -->
<!-- 							</td> -->
						   </tr>
					    </s:else>
				</s:iterator>
			</s:if>
			<s:else>
				<tr >
					<td >
						<span style="color: blue">暂无记录！</span>
					</td>
				</tr>
			</s:else>
		</tbody>
	</table>
</div>

<script type="text/javascript">
function findSubStep(batchNOVal,jobNoVal){
	var _ctx = "<%=request.getContextPath()%>";
	var url=_ctx+"/batchCtl/batchMngt!stepsFromJob.do";
	$.get(url,
	{batchNo:batchNOVal,jobNo:jobNoVal},
			function(){
		$("#stepInfoDiv").html(data);
	});
	return url;
}
</script>
	     
